package com.intellij.licensecommon.util;

import java.util.Date;

public class SubscriptionLicenseInfo extends LicenseInfo implements Cloneable {
    public static SubscriptionLicenseInfo DEFAULT_LICENSE = new SubscriptionLicenseInfo();
    public Date maintenanceDueDate;

    static {
        DEFAULT_LICENSE.b = "Fake";
        DEFAULT_LICENSE.productId = 0;
        DEFAULT_LICENSE.licenseId = 1;
        DEFAULT_LICENSE.majorVersion = 1;
        DEFAULT_LICENSE.minorVersion = 0;
        DEFAULT_LICENSE.generationDate = DateUtil2.a(2010, 1, 1);
        DEFAULT_LICENSE.expirationDate = DateUtil2.a(2010, 1, 2);
        DEFAULT_LICENSE.maintenanceDueDate = DateUtil2.a(2011, 1, 1);
    }

    public Object clone() {
        return super.clone();
    }

    public boolean equals(Object paramObject) {
        if (this == paramObject) {
            return true;
        }
        if ((paramObject == null) || (getClass() != paramObject.getClass())) {
            return false;
        }
        if (!super.equals(paramObject)) {
            return false;
        }
        SubscriptionLicenseInfo localf = (SubscriptionLicenseInfo) paramObject;
        if (this.maintenanceDueDate != null ? !this.maintenanceDueDate.equals(localf.maintenanceDueDate) : localf.maintenanceDueDate != null) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int i = super.hashCode();
        i = 31 * i + (this.maintenanceDueDate != null ? this.maintenanceDueDate.hashCode() : 0);
        return i;
    }

    public String toString() {
        StringBuffer localStringBuffer = new StringBuffer();
        localStringBuffer.append("\n");
        localStringBuffer.append(super.toString());
        localStringBuffer.append("maintenanceDueDate:").append(this.maintenanceDueDate).append("\n");
        return localStringBuffer.toString();
    }
}
